<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class HouseImgModel extends Model
{
    use HasFactory;
    use HasDateTimeFormatter;
    use SoftDeletes;
    protected $table = 'house_img';
    protected $guarded = [];
    public function setHousePanoramagramAttribute($value)
    {
        $this->attributes['house_panoramagram'] = implode(',',$value);
    }
    public function setHouseOutdoorAttribute($value)
    {
        $this->attributes['house_outdoor'] = implode(',',$value);
    }
    public function setHouseCoverAttribute($value)
    {
        $this->attributes['house_cover'] = implode(',',$value);
    }
    public function setHouseTypeAttribute($value)
    {
        $this->attributes['house_type'] = implode(',',$value);
    }
}
